<?php
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.model' );

class igcategoriesModelIgconfig extends JModel{

	function getParams()
	{
		$table =& JTable::getInstance('component');
		$table->loadByOption( 'com_igallery' );

		$params = array();

		$path	= IG_ADMINISTRATOR_COMPONENT.DS.'config_general.xml';
		$params['general'] = new JParameter( $table->params, $path );
		
		$path	= IG_ADMINISTRATOR_COMPONENT.DS.'config_uploader.xml';
		$params['uploader'] = new JParameter( $table->params, $path );
		
		$path	= IG_ADMINISTRATOR_COMPONENT.DS.'config_newitem.xml';
		$params['newitem'] = new JParameter( $table->params, $path );

		$path	= IG_ADMINISTRATOR_COMPONENT.DS.'config_frontend_fields.xml';
		$params['frontend_fields'] = new JParameter( $table->params, $path );
		
		$path	= IG_ADMINISTRATOR_COMPONENT.DS.'config_moderation.xml';
		$params['moderation'] = new JParameter( $table->params, $path );

		return $params;
	}
}
